package Text2;

/*
 *@Student 张策
 */
public class work5 {
    public static void main(String[] args) {
        T5 t5 = new T5();
        synchronized (t5){

        }
        t5.start();
    }
}
class T5 extends Thread{
    @Override
    public void run() {
        while (true){
            for (int i = 0; i < 10; i++) {
                System.out.println("子类");
                try {
                    Thread.sleep(1000);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
            break;
        }
    }
}
